package com.carleasoft.mps.adu.business.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carleasoft.mps.adu.business.user.bean.entity.AuthorityUserTypeEntity;
import com.carleasoft.mps.adu.business.user.bean.entity.MAuthorityStaggerHolidays;
import com.carleasoft.mps.adu.business.user.bean.po.MAuthorityStaggerHolidaysPo;
import com.carleasoft.mps.adu.business.user.bean.po.MAuthorityUserDynamicPo;
import com.carleasoft.mps.adu.business.user.bean.vo.MAuthorityDeptCountVo;
import com.carleasoft.mps.adu.business.user.bean.vo.MAuthorityStaggerHolidaysVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 人员轮休Mapper接口
 * 
 * @author ruoyi
 * @date 2024-04-12
 */
@Repository
@Mapper
public interface MAuthorityStaggerHolidaysMapper extends BaseMapper<MAuthorityStaggerHolidays> {

    /**
     * 查询人员轮休
     * 
     * @param id 人员轮休主键
     * @return 人员轮休
     */
    public MAuthorityStaggerHolidaysVo selectMAuthorityStaggerHolidaysById(Integer id);

    /**
     * 查询人员轮休列表
     * 
     * @param mAuthorityStaggerHolidaysPo 人员轮休
     * @return 人员轮休集合
     */
    public Page<MAuthorityStaggerHolidaysVo> selectMAuthorityStaggerHolidaysList(@Param("page") Page page, @Param("po") MAuthorityStaggerHolidaysPo mAuthorityStaggerHolidaysPo);

    /**
     * 根据部门Code分钟求和总条数
     * @return
     */
    public List<MAuthorityDeptCountVo> selectMAuthorityDeptCountByDeptCode(@Param("createTime") String createTime);

    int selectPageCount(@Param("po") MAuthorityStaggerHolidaysPo mAuthorityStaggerHolidaysPo);

}
